package fr.generali.poc.statemachine.states;

public enum StateEnum {
	STATE_A("STATE_A"),STATE_B("STATE_B");
	
	private StateEnum(String name) {
		this.name = name;
		if ("STATE_A".equals(name)) {
			state = StateA.getInstance();
		}
		else {
			state = StateB.getInstance();
		}
	}

	public StateAbstract getState() {
		return state;
	}

	private String name;
	private StateAbstract state;
 
}
